#include <mln/all.hh>
#include <list>
#include <utility>
#include <cmath>

typedef enum
  {
    DIR_RIGHT = 0,
    DIR_RIGHT_UP = 1,
    DIR_UP = 2,
    DIR_LEFT_UP = 3,
    DIR_LEFT = 4,
    DIR_LEFT_DOWN = 5,
    DIR_DOWN = 6,
    DIR_RIGHT_DOWN = 7,
    DIR_NONE = 8
  } e_dir;
